package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/canvas"
	"image/color"
)

/*
 画布，新增一个画布，可以填充颜色等信息
*/

func main() {
	myApp := app.New()

	w := myApp.NewWindow("Rectangle")

	rect := canvas.NewRectangle(color.White)

	w.SetContent(rect)
	rect.Resize(fyne.NewSize(100, 80))
	w.SetPadded(false)

	w.Resize(fyne.NewSize(150, 100))

	w.ShowAndRun()
}
